﻿{include file="public/header"}
<title>订单指派</title>
</head>
<style>
    .layui-layer-page .layui-layer-content{
        overflow: visible !important;
    }
    .layui-layer-setwin{
        display: none;
    }
</style>
<body>

<div class="page-container">
    <a style="text-decoration:none" data-id="{$order_id}" class="btn btn-primary js "  href="javascript:;" title="新增"><span class="label label-primary">新增</span></a>
    <div class="mt-20">
        <table class="table table-border table-bordered table-bg table-hover table-sort">
            <thead>
            <tr class="text-c">
                <th width="100">订单号</th>
                <th width="100">内容</th>
                <th width="100">跟进人</th>
                <th width="100">时间</th>

            </tr>
            </thead>
            <tbody>
            {volist name='list' id='vo'}
            <tr class="text-c">
                <td>{$vo.order_id}</td>
                <td>{$vo.content}</td>
                <td>{$vo.user_id}</td>
                <td> {if condition="$vo.ctime"}{:date('Y-m-d H:i:s',$vo.ctime)}{else}暂无{/if}</td>

            </tr>
            {/volist}
            </tbody>
        </table>
        <div class="pages" style="float: right">{$list->render()}</div>

    </div>
</div>

{include file="public/footer"}
<script type="text/javascript">
    $('.js').click(function () {
        var id=$(this).attr('data-id');
        var src="{:Url('index/order/genadd')}";
        layer.open({
            type: 2,
            area: ['800px', '500px'],
            fix: false,
            maxmin: true,
            shade:0.4,
            title: '添加',
            content: src+'?order_id='+id
        });
    });

</script>
</body>
</html>